transcript on
if ![file isdirectory verilog_libs] {
	file mkdir verilog_libs
}

vlib verilog_libs/altera_ver
vmap altera_ver ./verilog_libs/altera_ver
vlog -vlog01compat -work altera_ver {d:/program files/quartus_13/quartus/eda/sim_lib/altera_primitives.v}

vlib verilog_libs/lpm_ver
vmap lpm_ver ./verilog_libs/lpm_ver
vlog -vlog01compat -work lpm_ver {d:/program files/quartus_13/quartus/eda/sim_lib/220model.v}

vlib verilog_libs/sgate_ver
vmap sgate_ver ./verilog_libs/sgate_ver
vlog -vlog01compat -work sgate_ver {d:/program files/quartus_13/quartus/eda/sim_lib/sgate.v}

vlib verilog_libs/altera_mf_ver
vmap altera_mf_ver ./verilog_libs/altera_mf_ver
vlog -vlog01compat -work altera_mf_ver {d:/program files/quartus_13/quartus/eda/sim_lib/altera_mf.v}

vlib verilog_libs/altera_lnsim_ver
vmap altera_lnsim_ver ./verilog_libs/altera_lnsim_ver
vlog -sv -work altera_lnsim_ver {d:/program files/quartus_13/quartus/eda/sim_lib/altera_lnsim.sv}

vlib verilog_libs/cycloneive_ver
vmap cycloneive_ver ./verilog_libs/cycloneive_ver
vlog -vlog01compat -work cycloneive_ver {d:/program files/quartus_13/quartus/eda/sim_lib/cycloneive_atoms.v}

if {[file exists rtl_work]} {
	vdel -lib rtl_work -all
}
vlib rtl_work
vmap work rtl_work

vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit/sub.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit/add.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit/str.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit/sdal.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Instruct_Unit/instruct_unit.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/xor_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/sub_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/right_shift_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/or_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/not_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/multi_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/mod_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/left_shift_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/div_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/and_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/ALU.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/ALU/add_cell.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center/rw_ram.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center/ctrl_center.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center/rw_reg.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/Ctrl_Center/register_element.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/decode_unit.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/cpu_top.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/sys_init.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/code/get_instruct.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/ip_core/ram_256x16 {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/ip_core/ram_256x16/ram_256x16.v}
vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/ip_core/ram_disk_256x16 {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/ip_core/ram_disk_256x16/ram_disk_256x16.v}

vlog -vlog01compat -work work +incdir+D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/test_bench {D:/DeskTop_Launcher/XueEr_WorkStation/code_git/cpu_me01/test_bench/tb_cpu_top.v}

vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cycloneive_ver -L rtl_work -L work -voptargs="+acc"  tb_cpu_top

add wave *
view structure
view signals
run 10 us
